package com.dong.jsr330;

import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Provider;

/**
 * description
 *
 * @author Administrator 2021/09/03 16:08
 */
public class MyBean {

    @Inject
    @Named("inject2")
    private MyInjectBean myInjectBean;

    public MyBean() {
    }

    public MyBean(MyInjectBean myInjectBean) {
        this.myInjectBean = myInjectBean;
    }

    public void setMyInjectBean(MyInjectBean myInjectBean) {
        this.myInjectBean = myInjectBean;
    }

    public MyInjectBean getMyInjectBean() {
        return myInjectBean;
    }

    @Override
    public String toString() {
        return "MyBean{" +
                "myInjectBean=" + myInjectBean +
                '}';
    }
}
